package mdm.com.util;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

public class HttpContextUtils {

    public static HttpServletRequest getHttpServletRequest() {
        return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
    }
    
 // //获取请求头的 语言和环境配置信息
    // HttpServletRequest req = HttpContextUtils.getHttpServletRequest();
    // System.out.println("====header===language====="+req.getHeader("language"));
    // System.out.println("====header===env====="+req.getHeader("env"));
}
